package com.example.hellomap.rest;

import org.junit.Test;

import junit.framework.TestCase;

public class test_places extends TestCase {
	/*
	@Test
	public void test_places_normal_get() {
		ServerInterface.get("places");
		ServerInterface.get("places/A38");
	}
	@Test
	public void test_places_caseInsensitive_get() {
		ServerInterface.get("places/vaLAMi");
	}
	
	@Test
	public void test_places_doesNotExist_get() {
		ServerInterface.get("places/elemerce");
	}

	//POST
	@Test
	public void test_places_normal_post() {
		places place = new places("Angyalfold", 1138, 47.5380674, 19.078482);
		ServerInterface.post("places", place);
	}
	
	public void test_places_doesNotHaveCoordinatesError() {
		places place2 = new places();
		place2.setId("Nagytevel");
		ServerInterface.post("places", place2);
	}
		
	@Test
	public void test_places_ShouldBeDuplicateUsernameError() {
		places place = new places("Angyalfold", 1138, 47.5380674, 19.078482);
		ServerInterface.post("places", place);
		ServerInterface.post("places", place);
		ServerInterface.get("places");
	}
	
	@Test
	public void test_places_NotExistingIdPostError() {
		places place = new places();
		ServerInterface.post("places", place);
		//ServerInterface.get("places");
	}
*/
	
}